home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QRZ! Ham Radio 4
/
QRZ Ham Radio Callsign Database - Volume 4.iso
/
files
/
dsp
/
drbubtxt
/
toolstar.z
/
toolstar
/
tools
/
cldlod.nxt
/
makefile
< prev
Wrap
Makefile
|
1992-02-21
|
2KB
|
70 lines
# $Id: makefile,v 1.8 92/01/14 15:44:48 jay Exp $
#CC = gcc # GNU compiler
CC = cc # NeXT,DEC
OS = -DBSD # Sun, DEC, Apollo
#OS = # Non-BSD (PC, Mac)
#OS = -DMACH # Mach (NeXT)
#ARCH = -DM68020=1 # Sun 3, NeXT, Apollo, HP, Mac
#ARCH = -DSPARC=1 # Sun 4
#ARCH = -DI8086=1 # PC
ARCH = -DD3100=1 # DEC 3100
#ENDIAN = -DBIG_ENDIAN=1 # everything but DEC and PC
ENDIAN = -DBIG_ENDIAN=0 # DEC3100 and PC
INSTALL = /bin/mv
INSTALLDIR = #
#CLASDIR=clas56
#CLASDIR=clas96
CLASDIR=clas16
#ARCDIR=sun3
#ARCDIR=sun4
#ARCDIR=next
#ARCDIR=apl
ARCDIR=dec
DISTDIR=../../dist/$(ARCDIR)/$(CLASDIR)
DBIN=$(DISTDIR)/bin
DTOOL=$(DISTDIR)/cldtools
DISTSRC=cldinfo.c cldlod.c cofdmp.c srec.c strip.c tiohist.c cofdmp.h srec.h strip.h makefile
DISTBIN=cldinfo cldlod cofdmp srec strip tiohist
all: cldinfo cldlod srec cofdmp strip tiohist
dist:
test -d ../../dist || mkdir ../../dist
test -d ../../dist/$(ARCDIR) || mkdir ../../dist/$(ARCDIR)
test -d $(DISTDIR) || mkdir $(DISTDIR)
test -d $(DBIN) || mkdir $(DBIN)
test -d $(DTOOL) || mkdir $(DTOOL)
for i in ${DISTBIN} ; do cp $$i $(DBIN)/. ; done
for i in ${DISTSRC} ; do cp $$i $(DTOOL)/. ; done
clean:
rm *.o cldinfo cldlod srec cofdmp strip tiohist
cldlod:
$(CC) -O $(ENDIAN) -I../mcoffinc cldlod.c -o cldlod
cldinfo:
$(CC) -O $(ENDIAN) -I../mcoffinc cldinfo.c -o cldinfo
srec:
$(CC) -O $(OS) $(ARCH) -I../mcoffinc srec.c -o srec
cofdmp:
$(CC) -O $(OS) $(ARCH) -I../mcoffinc cofdmp.c -o cofdmp
strip:
$(CC) -O $(OS) $(ARCH) -I../mcoffinc strip.c -o strip
tiohist:
$(CC) -O $(OS) $(ARCH) tiohist.c -o tiohist
install:
$(INSTALL) cldinfo cldlod srec cofdmp strip tiohist $(INSTALLDIR)